<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<div class="portlet box green">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-gift"></i>科室
        </div>
    </div>
    <div class="portlet-body form">
        <form class="form-horizontal form-bordered">
            <div class="form-group">
                <label class="col-md-3 control-label">一级科室:</label>
                <div class="col-md-9">
                    <div class="checkbox-list">
                        <c:forEach items="${listWeightOne}" var="department" varStatus="vs">
                            <c:if test="${(vs.index)%6 == 0}">
                                <br/><br/>
                            </c:if>
                            <button type="button" class="btn btn-default" onclick="createTemplate('${department.departmentId}')">
                                <i class="fa"></i> ${department.departmentName}
                            </button>
                        </c:forEach>
                    </div>
                </div>
            </div>
            <div class="form-group ">
                <label class="col-md-3 control-label">二级科室:</label>
                <div class="col-md-9">
                    <div class="checkbox-list">
                        <c:forEach items="${listWeightTwo}" var="department" varStatus="vs">
                            <c:if test="${(vs.index)%6 == 0}">
                                <br/><br/>
                            </c:if>
                            <button type="button" class="btn btn-default" onclick="createTemplate('${department.departmentId}')">
                                <i class="fa"></i> ${department.departmentName}
                            </button>
                        </c:forEach>
                    </div>
                </div>
            </div>

            <div class="form-actions">
                <div class="col-md-9 col-md-offset-3">
                    <button type="reset" class="btn btn-default" onclick="cancel()">
                        <spring:message code="btn.return"></spring:message>
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>